﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

public enum eQDBType
{
    Sql = 1, Oracle = 2
}

public interface IQQueryBuilder
{
    string Build(QueryFacade qf);
}

public class QDBFactory
{
    public static eQDBType DBType { get; set; }

    public static IQQueryBuilder GetQueryBuilderInstance()
    {
        if (ConfigurationManager.AppSettings["db_type"] == "oracle")
        {
            return (new QOracleQueryBilder());
        }
        else
        {
            return (new QSqlQueryBilder());
        }
    }


}

